#ifndef UDPCLIENTTHREAD_H
#define UDPCLIENTTHREAD_H

#include <QThread>
#include <QtNetwork/QUdpSocket>

class UdpClientThread: public QThread
{
    Q_OBJECT
public:
    explicit UdpClientThread(QObject *parent = nullptr, quint16 port = 1234);

signals:
    void sendMessageSignal(const QByteArray &message);

protected:
    /*
    void run() override;
*/

private slots:
    void sendMessageSlot(const QByteArray &message);

private:
    quint16 port;
    QUdpSocket *clientSocket;
};

#endif // UDPCLIENTTHREAD_H
